import pygame
from pygame.sprite import Sprite


class Bullet(Sprite):
    def __init__(self, img, position):
        super().__init__()
        self.image = img
        self. position = position
        self.rect = self.image.get_rect()
        self.rect.center = self.position

    def update(self):
        # self.position = (self.position[0]+1, self.position[1])
        self.rect.move_ip((5,0))


